<%@ taglib prefix="security" uri="http://www.springframework.org/security/tags" %>

	<!-- This code written by :  Willie Wheeler and John Wheeler -->
	<!-- For 'Spring In Practice' [Book written by Willie Wheeler and John Wheeler] -->


<div>
	Welcome
	<security:authorize ifAnyGranted="ROLE_ANONYMOUS">
		guest
	</security:authorize>
	<security:authorize ifAnyGranted="ROLE_USER">
		<security:authentication property="principal.username"/>
	</security:authorize>
</div>
<div>
	<a href="index.jsp">Home</a>
	<security:authorize ifAnyGranted="ROLE_ANONYMOUS">
		| <a href="spring_security_login">Login</a>
	</security:authorize>
	<security:authorize ifAnyGranted="ROLE_ADMIN">
		| <a href="admin.jsp">Admin</a>
	</security:authorize>
	<security:authorize ifAnyGranted="ROLE_USER">
		| <a href="account.jsp">Account</a>
		| <a href="j_spring_security_logout">Logout</a>
	</security:authorize>
</div>
